package test;

import java.io.BufferedReader;
import java.io.IOException;

public class FileReader {
	public static String readFileContents(String fileName) throws IOException {
		java.io.FileReader fr = new java.io.FileReader(fileName);
		BufferedReader br = new BufferedReader(fr);
		StringBuilder sb = new StringBuilder();
		String line = br.readLine();
		while (line != null) {
			sb.append(line);
			sb.append("\n");
			line = br.readLine();
		}
		br.close();
		fr.close();

		return sb.toString();
	}
}
